package com.jg.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 供应商商品信息表
 * </p>
 *
 * @author 晓东√
 * @since 2025-09-19 11:18
 */
@Getter
@Setter
@ToString
@TableName("products")
@Schema(name = "Products", description = "供应商商品信息表")
public class Products extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品唯一标识符
     */
    @Schema(description = "商品唯一标识符")
    @TableId(value = "product_id", type = IdType.AUTO)
    private Integer productId;

    /**
     * 商品名称
     */
    @TableField("product_name")
    @Schema(description = "商品名称")
    private String productName;

    /**
     * 商品类别ID
     */
    @TableField("category_id")
    @Schema(description = "商品类别ID")
    private String categoryId;
    /**
     * 商品品牌
     */
    @TableField("brand")
    @Schema(description = "商品品牌")
    private String brand;

    /**
     * 商品售价
     */
    @TableField("price")
    @Schema(description = "商品售价")
    private BigDecimal price;

    /**
     * 商品采购价
     */
    @TableField("purchase_price")
    @Schema(description = "商品采购价")
    private BigDecimal purchasePrice;

    /**
     * 商品描述
     */
    @TableField("description")
    @Schema(description = "商品描述")
    private String description;

    /**
     * 商品图片URL
     */
    @TableField("image_url")
    @Schema(description = "商品图片URL")
    private String imageUrl;

    /**
     * 供应商Id
     */
    @TableField("supplier_id")
    @Schema(description = "供应商Id")
    private Integer supplierId;
}
